package com.example.service.impl;

import com.example.dao.RegisterDao;
import com.example.domain.User;
import com.example.service.RegisterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RegisterServiceImpl implements RegisterService {

    @Autowired
    RegisterDao registerDao;
    @Override
    public boolean register(User user) {
        registerDao.insertUser(user);
        return true;
    }
}
